Combine array of objects on every third elemnt of the first array